package bma.common.json.impl;

import java.util.List;
import java.util.Map;

import bma.common.langutil.core.ToStringUtil;

public class BeanTestObject2 {
	/**
	 * 唯一的消息编号
	 */
	private String messageId;

	/**
	 * 相关的房间编号
	 */
	private List<String> roomId;

	/**
	 * 发送人的编号
	 */
	private String senderId;

	/**
	 * 接受人的编号
	 */
	private String receiverId;

	/**
	 * 消息属性
	 */
	private Map<String, String> attributes;

	/**
	 * 发送时间
	 */
	private long time;

	/**
	 * 临时消息
	 */
	private boolean temp;

	public String getMessageId() {
		return messageId;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public List<String> getRoomId() {
		return roomId;
	}

	public void setRoomId(List<String> roomId) {
		this.roomId = roomId;
	}

	public String getSenderId() {
		return senderId;
	}

	public void setSenderId(String senderId) {
		this.senderId = senderId;
	}

	public String getReceiverId() {
		return receiverId;
	}

	public void setReceiverId(String receiverId) {
		this.receiverId = receiverId;
	}

	public Map<String, String> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, String> attributes) {
		this.attributes = attributes;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public boolean isTemp() {
		return temp;
	}

	public void setTemp(boolean temp) {
		this.temp = temp;
	}

	public boolean isEvent() {
		return false;
	}

	@Override
	public String toString() {
		return ToStringUtil.fieldReflect(this);
	}
}
